<template slot-scope="scope">
  <div class="box">
    <div class="dialog-box">
      <el-dialog
        title="删除"
        :visible.sync="dialogVisible"
        :before-close="handleClose"
        :modal-append-to-body="true"
        :lock-scroll="false"
      >
        <div class="dialog-p">
          <p>此操作将删除该信息，是否继续?</p>
        </div>

        <span slot="footer" class="dialog-footer">
          <el-button @click="handleClose">取 消</el-button>
          <el-button type="primary" @click="handleUnderstand">确 认</el-button>
        </span>
      </el-dialog>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    dialogVisible: {},
    select: {},
    topName: {},
  },
  components: {},
  data() {
    return {
      radio: "1", // 单选
      value: "", // 搜索
    };
  },
  computed: {},
  created() {
    console.log(this.listarr);
  },
  methods: {
    handleClose() {
      this.$emit("handleClose", 1);
      //   this.dialogVisible = false;
    },
    handleUnderstand() {
      this.$emit("handleUnderstand", 1);
    },
  },
};
</script>

<style scoped lang="less">
.dialog-p {
  width: 100%;
  // display: flex;
  margin-top: -20px;
  font-size: 15px;
  color: #101010;
  p {
    font-size: 17px;
    text-align: center;
    line-height: 30px;
  }
}
::v-deep .el-dialog__wrapper {
  position: absolute !important;
  min-width: 200px;
}
::v-deep .v-modal {
  position: absolute !important;
  min-width: 200px;
}
/deep/.el-dialog {
  border-radius: 10px;
  background-color: FFFFFF;
  min-width: 400px;
  max-width: 600px;
  font-weight: 600;
}
</style>
